import {Pipe, PipeTransform} from '@angular/core';
@Pipe({
    name:"myDataPipe"
})

export class MyDataPipe implements PipeTransform{
    transform(str:string,time:boolean=true):string{
        if(str){
            return time?str.split('T').join("  "):str.split('T')[0];
        }else{
            return str;
        }
    }
}

